
--Main functions called directly from engine 

timer = 60;

function Initialize()
	position = this:GetPosition();
end

function Update()
	timer = timer +1;
	if timer > 100 then
		core.SpawnParticles("explosion",this:GetPosition() + vect.Vector2F(50,50),vect.Vector2F(0,1),true,"parts");
		core.SpawnEntity("ball","bi",position:GetX() + 50,position:GetY() + 60,'Map');
		timer = 0;
	end
end
